import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { UsersQuery, UsersVO } from './types';

// 查询app用户列表
export const listUser = (query: UsersQuery): AxiosPromise<TableInfoVO<UsersVO>> => {
  return request({
    url: '/user/list',
    method: 'get',
    params: query
  });
};

// app用户冻结，解冻
export const getFreeze = (id: string | number) => {
  return request({
    url: `/user/freeze/${id}`,
    method: 'GET'
  });
};

// // 拦截物流 只有已发货订单有
// export const putccanel = (sn: string | number) => {
//   return request({
//     url: `/order/cancel-deliver/${sn}`,
//     method: 'PUT'
//   });
// };

// // 订单详情
// export const getdefuis = (id: string | number) => {
//   return request({
//     url: `/order/${id}`,
//     method: 'GET'
//   });
// };
